﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ActionHotNews.ascx.cs" Inherits="GNCMedia.KQXS.Admin.UserControlsAdmin.ActionHotNews" %>
<table class="table" cellspacing="0" rules="all" border="1" style="width: 100%; border-collapse: collapse;">
    <tbody>
        <tr>
            <th scope="col">
                ID Tin Tức
            </th>
            <th scope="col">
                Nội Dung Tin Tức
            </th>
            <th scope="col">
                ảnh minh họa
            </th>
            <th scope="col">
            </th>
        </tr>
        <asp:Repeater ID="RepeaterHotNews" runat="server" 
            onitemcommand="RepeaterHotNews_ItemCommand">
            <ItemTemplate>
                <tr>
                    <td style="text-align: center">
                        <%# Eval("NEWSID")%>
                    </td>
                    <td style="text-align: center">
                        <%# ThanhTu.GNC.Media.KQXS.Common.Utils.ToUTF8String((byte[])Eval("NEWSCONTENT"))%>
                    </td>
                    <td style="text-align: center">
                         <%# Eval("IMAGE")%>
                    </td>
                    <td style="text-align: center">
                        <a href="../Admin/UpdateHotNews.aspx?HotnewID=<%# Eval("NEWSID")%>&Content=<%# ThanhTu.GNC.Media.KQXS.Common.Utils.ToUTF8String((byte[]) Eval("NEWSCONTENT"))%>">
                            Update</a>
                        <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm('Are you sure you want to Delete this Record?');"
                            CommandName='<%# Eval("NEWSID") %>'>Delete</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <asp:Label ID="lblFooter" runat="server"></asp:Label>
            </FooterTemplate>
        </asp:Repeater>
        <tr>
            <td colspan="4">
               
            </td>
        </tr>
    </tbody>
</table>
  <div style="text-align: right">
            <asp:Button ID="btnAdd" runat="server" Text="Thêm mới dữ liệu" CssClass="button"
                OnClick="btnAdd_Click" />
        </div>